#ifndef JCODE_H
#define JCODE_H

#include <QWidget>
#include <QFileInfo>
#include <QTableWidget>
#include <QtGui>
#include <QtNetwork/QNetworkReply>
#include <QtNetwork/QNetworkAccessManager>
#include <QMessageBox>
#include <QApplication>
#include <QSysInfo>
#include <QTextToSpeech> //TXT转语音

class JCode
{
public:

public slots:
    static QString toXOR(QString src, const QChar key);
    static QString toUp(QString src);
    static bool isFileExist(QString fullFileName);
    static QString toChineseBIG(const double &Fnumber,QString unit);
    static QImage PICconvert_BW(QImage sPIC);
    static QImage PIC_NoBlack(QImage sPIC,int Rotate);
    static bool clearTempFiles(QString FilePath);
    static QJsonObject QStringTOQJson(const QString jsonString);
    static QString QJsonTOQString(const QJsonObject& jsonObject);
    static bool SaveText(const QString &aFileName,QString str);
    static bool AppendText(const QString &aFileName,QString str);
    static QString OpenText(const QString &aFileName);
    static bool FZTableWidget(const QTableWidget *tableWidget);
    static bool TableWidgetTOPDF(const QTableWidget *tableWidget, QString PDFFileName,QString Title,QString Title1,QString PageEnd,QString PageOrientation);
    static QString GetMACadd();  //获取MAC地址
    static QString GetIPadd();  //获取IP地址
    static QString SYSINFO();  //获取系统信息
    static QString PingIP(QString IP);  //Ping IP地址
    static QString CMD(QString commandStr);  //执行CMD命令
    static QString getUrl(const QString Url);  //download 文件
    static QString getUrlString(const QString Url);  //download 文件
    static bool SpeakText(QString SayText);



};

#endif // JCODE_H
